<?php
namespace Fang\UserBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
*@ORM\Entity
*@ORM\Table(name="subuserroles")
**/
class SubuserRoles
{
  /**
  *@ORM\Column(type="integer")
  *@ORM\Id
  *@ORM\GeneratedValue(strategy="AUTO")
  **/
  private $id;
  /**
  *关联子角色表
  *@ORM\ManyToOne(targetEntity="Subroles")
  *@ORM\JoinColumn(name="srid", referencedColumnName="srid")
  *@ORM\Column(type="integer")
  **/
  private $srid;
  /**
  *关联子账户用户
  *@ORM\ManyToOne(targetEntity="Subuser")
  *@ORM\JoinColumn(name="sid", referencedColumnName="sid")
  *@ORM\Column(type="integer")
  **/
  private $sid;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set srid
     *
     * @param integer $srid
     * @return SubuserRoles
     */
    public function setSrid($srid)
    {
        $this->srid = $srid;

        return $this;
    }

    /**
     * Get srid
     *
     * @return integer 
     */
    public function getSrid()
    {
        return $this->srid;
    }

    /**
     * Set sid
     *
     * @param integer $sid
     * @return SubuserRoles
     */
    public function setSid($sid)
    {
        $this->sid = $sid;

        return $this;
    }

    /**
     * Get sid
     *
     * @return integer 
     */
    public function getSid()
    {
        return $this->sid;
    }
}
